home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000107_icon-group-sender _Fri Jun 26 15:40:05 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id PAA16803
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Fri, 26 Jun 1998 15:40:04 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA30768; Fri, 26 Jun 1998 15:39:53 -0700
Sender: rwg@fns.com
Message-Id: <3593FF9A.4A241736@fns.com>
Date: Fri, 26 Jun 1998 16:07:54 -0400
From: Robbie Gilbert <rwg@fns.com>
Organization: Fujitsu Network Communications
X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 5.5.1 sun4u)
Mime-Version: 1.0
To: icon-group@optima.CS.Arizona.EDU
Subject: Forcing Generator to Return a List of Values
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1016
Hi,
I have a newbie question:
I would like to know if there is a function or procedure
that will repeatedly evaluate an expression which is a
generator and return ALL the results in a list. I could
write such a procedure very easily (maybe only 2
lines?) using the every-do control structure but if there is
one already in the program library, I would prefer to use
the standard.
I found evallist but that seems to construct an entire
program and exec it which seems expensive for my purposes.
I also checked list construction and type conversion to see
if there was a way to "force" a list context around an
expression evaluation but couldn't find any. I want to
assign the list of values and since assignment only takes
the first value, things like "| expr" only seem to produce
one value. I need some intervening procedure or function to
"collect" all the values generated. The list constructor
doesn't do the job since it only evaluates its second
argument, the expr, once.
Robbie Gilbert
rwg@fns.com